package homework23;

public class Client {
    public static void main(String[] args) {
        Phone phone1 = new SimplePhone();
        //将具体的构建对象传入到抽象构件类定义的对象实例中（描述有误...！！！）
        phone1.receiveCall();
        System.out.println("==============");

        Phone phone2= new JarPhone(phone1);
        phone2.receiveCall();
        System.out.println("==============");

        Phone phone3 = new ComplexPhone(phone2);
        phone3.receiveCall();
    }
}